//
//  LXBaseViewModel.m
//  ProjectSource_Demo
//
//  Created by Liu on 15/12/18.
//  Copyright © 2015年 AngryBear. All rights reserved.
//

#import "LXBaseViewModel.h"

@implementation LXBaseViewModel

- (NSString *)descriptionOfViewModel
{
    NSString *description = NSStringFromClass([self class]);
    if ([description rangeOfString:@"ViewModel"].length) {
        return [description stringByReplacingOccurrencesOfString:@"ViewModel" withString:@""];
    }
    else if ([description rangeOfString:@"VM"].length) {
        return [description stringByReplacingOccurrencesOfString:@"VM" withString:@""];
    }
    return nil;
}

@end
